package view;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import javax.swing.BoxLayout;
import javax.swing.JTextPane;

public class VPair extends JPanel {

	private static final long serialVersionUID = 1L;
	protected JTextPane vPartido = null;
	protected JPanel jPanelRigth = null;

	/**
	 * This is the default constructor
	 */
	public VPair() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		//this.setSize(100, 50);
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		this.add(getVPartido(), new BoxLayout(this, BoxLayout.X_AXIS));
		this.add(getJPanelRigth(), new BoxLayout(this, BoxLayout.X_AXIS));
		getJPanelRigth().setToolTipText("Marca una casilla( 1 x 2)");
		getVPartido().setToolTipText("Casa - Visitante");
	}

	/**
	 * This method initializes vPartido	
	 * 	
	 * @return javax.swing.JTextPane	
	 */
	protected JTextPane getVPartido() {
		if (vPartido == null) {
			vPartido = new JTextPane();
			vPartido.setEditable(false);
		}
		return vPartido;
	}

	/**
	 * This method initializes jPanelRigth	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	protected JPanel getJPanelRigth() {
		if (jPanelRigth == null) {
			jPanelRigth = new JPanel();
			jPanelRigth.setLayout(new GridBagLayout());
		}
		return jPanelRigth;
	}

}
